package dryworks.jsf.annotations;

import java.util.LinkedHashMap;
import java.util.List;

public class TagAnnotation {
	class Attribute {
		String name;
		String value;
	}
	String name;
	String text;
	String content;
	
	List children;
	LinkedHashMap attributes;
	
	public String toString() {
		StringBuffer res = new StringBuffer();
		res.append("\nname:"+name+"\n");
		res.append("text:"+text+"\n");
		res.append("content:\n"+content);
		return res.toString();
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public LinkedHashMap getAttributes() {
		if (attributes == null) {
			attributes = new LinkedHashMap();
		}
		return attributes;
	}
	public void setAttributes(LinkedHashMap attributes) {
		this.attributes = attributes;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public List getChildren() {
		return children;
	}
	public void setChildren(List children) {
		this.children = children;
	}

}
